package com.cskaoyan.controller.user;

import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.user.UserAddressService;
import com.cskaoyan.service.user.UserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jzp
 * @since 2022/11/19 21:53
 */
@RestController
@RequestMapping("/admin/collect/")
public class UserCollect {
    @Autowired
    UserCollectService userCollectService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String userId, String valueId) {
        CommonData commonData = userCollectService.list(info , userId, valueId);
        return BaseRespVo.succeed(commonData);
    }
}
